package cn.com.css.taxInspection.attention.mapper;

import cn.com.css.taxInspection.attention.entity.AjmxbEntity;
import cn.com.css.taxInspection.attention.entity.CaseAjxxRelation;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

@Mapper
public interface CaseAjxxRelationMapper extends BaseMapper<CaseAjxxRelation> {

    @DS("oracle")
    @MapKey("jcajbh")
    List<Map<String, Object>> getAjxxListByAjbhs(@Param("ajbhs") List<String> ajbhs);

    List<AjmxbEntity> ajmxbList(AjmxbEntity req);

    long ajmxbListTotal();

    @MapKey("jcajxxuuid")
    Map<String, Object> getCbRkData(String jcajxxuuid);

    // 根据案件编号更新专项案件明细信息
    int updateZxajmxByAjbh(CaseAjxxRelation caseAjxxRelation);
}